<!DOCTYPE html>
<html>
<head>
  <meta content="IE=11.0000" http-equiv="X-Ua-Compatible">
  <meta charset="utf-8">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-Ua-Compatible" content="IE=edge,chrome=1">

  <title>弹窗详情</title>
  <!--region 引入公用js和css -->
  <link href="../assets/plugins/animate/animate.css" rel="stylesheet">
  <link href="../assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/fullcalendar/fullcalendar.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/base/css/components.css" rel="stylesheet" id="style_components" type="text/css"/>
  <link href="../assets/base/css/plugins.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/ditop/layout.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/datatables/datatables.min.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/bootstrap-table/bootstrap-table.css" rel="stylesheet">
  <link href="../assets/plugins/bootstrap-table/extensions/tree-column/bootstrap-table-tree-column.css" rel="stylesheet">
  <link href="../assets/plugins/bootstrap-toastr/toastr.css" rel="stylesheet">
  <link rel="stylesheet" href="../assets/plugins/sweetalert/sweetalert.css">
  <link rel="stylesheet" href="../assets/plugins/layer/theme/default/layer.css">
  <link href="../assets/plugins/select2/css/select2.min.css" rel="stylesheet">
  <link href="../assets/plugins/icheck/skins/flat/aero.css" rel="stylesheet">
  <link href="../assets/ditop/ditop.css" rel="stylesheet">
  <link href="../assets/ditop/style/ztree/style9/treestyle.css" rel="stylesheet">
  <link href="../assets/plugins/bootstrap-touchspin/bootstrap.touchspin.css" rel="stylesheet">

  <link href="../assets/plugins/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css"/>
  <link href="../assets/plugins/bootstrap-daterangepicker-extend/daterangepicker-ext.css" rel="stylesheet" type="text/css"/>

  <script src="../assets/plugins/jquery/jquery.min.js"></script>
  <script src="../assets/plugins/bootstrap/js/bootstrap.min.js"></script>
  <script src="../assets/plugins/bootstrap-toastr/toastr.js"></script>
  <script src="../assets/plugins/art-template/template.js"></script>
  <script src="../assets/plugins/layer/layer.js"></script>
  <script src="../assets/ditop/ditop.js"></script>
  <!--endregion-->

  <link href="../assets/module/gcjsy/css/public.css" rel="stylesheet"> <!-- CSS Customization -->
  <link href="../assets/module/gcjsy/css/pagination.css" rel="stylesheet">


  <link rel="stylesheet" href="src/split.css">

</head>
<body>


<div class="split-module center-block bg-white" style="width: 1000px">
  <div class="tr-head ">
    <div class="flex">
      <div class="tr-ico margin-right-20">
        <i class="dtFont dtFont-xiangmujiesuanshu-xian"></i>
      </div>
      <div class="tr-con">
        <h3 class="title2 margin-bottom-5">万科大道公馆施工工程1号楼 <span class="tag-orange">房屋建筑</span></h3>

        <p style="margin-bottom: 12px"><span>验收数据</span> <span class="grey">分项验收</span> <b>16</b> <span class="grey margin-left-15">分户验收</span> <b>已完成</b></p>
        <p>
          <span class="margin-right-20"><i class="blue dtFont dtFont-f-location"></i> 人民电器配套产业园项目</span>
          <span><i class="blue dtFont dtFont-f-location"></i> 万科大道公馆施工工程</span>
        </p>
      </div>
    </div>
    <div class="padding-top-20">
        <ul class="tab-ha clearfix">
          <li class="active">分部分项验收</li>
          <li>分户验收</li>
        </ul>
    </div>
  </div>

  <div class="tab-panes">
    <section class="tab-pane-item active">
      <div class="flex-s">
        <div class="inf-left">
          <ul class="ztree padding-top-20 padding-left-15" id="tree"></ul>
        </div>
        <div class="inf-right padding-top-10">
          <div class="padding-10">
            <div class="reminder margin-bottom-15" style="max-width: 600px">
              <p>每次申报的分部分项的子分项工程全部在此记录</p>
            </div>
          </div>
          <div class="padding-lr-20">
            <div class="dt-record ">

              <div class="record-item">
                <div class="record-time">2015-09-04 20：20</div>
                <i class="record-icon-circle"></i>
                <div class="record-container-info">
                  <div class="record-info-title">报审成功
                  </div>
                  <div class="record-info-detail">
                    <div class="inTags flex">
                      <span class="inTag"><i></i> 项目工程一</span>
                      <span class="inTag"><i></i> 项目工程撒的一</span>
                      <span class="inTag"><i></i> 项撒的工程一</span>
                      <span class="inTag"><i></i> 项目工程一</span>
                      <span class="inTag"><i></i> 项目工程撒的一</span>
                      <span class="inTag"><i></i> 项撒的工程一</span>
                    </div>

                  </div>
                </div>
              </div>

              <div class="record-item">
                <div class="record-time">2015-09-03 20：20</div>
                <i class="record-icon-circle"></i>
                <div class="record-container-info">
                  <div class="record-info-title">报审成功</div>
                  <div class="record-info-detail">
                    <div class="inTags flex">
                      <span class="inTag"><i></i> 项目工程一</span>
                      <span class="inTag"><i></i> 项目工程撒的一</span>
                      <span class="inTag"><i></i> 项撒的工程一</span>
                      <span class="inTag"><i></i> 项目工程一</span>
                      <span class="inTag"><i></i> 项目工程撒的一</span>
                      <span class="inTag"><i></i> 项撒的工程一</span>
                    </div>
                  </div>
                </div>
              </div>

              <div class="record-item">
                <div class="record-time">2015-09-02 20：20</div>
                <i class="record-icon-circle"></i>
                <div class="record-container-info">
                  <div class="record-info-title"><span class="red">报审失败</span></div>
                  <div class="record-info-detail">
                    <div class="inTags flex">
                      <span class="inTag"><i></i> 项目工程一</span>
                      <span class="inTag"><i></i> 项目工程撒的一</span>
                      <span class="inTag"><i></i> 项撒的工程一</span>
                      <span class="inTag"><i></i> 项目工程一</span>
                      <span class="inTag"><i></i> 项目工程撒的一</span>
                      <span class="inTag"><i></i> 项撒的工程一</span>
                    </div>
                  </div>
                </div>
              </div>


            </div>
          </div>
        </div>
      </div>
    </section>
    <section class="tab-pane-item">
      <div class="text-center padding-top-30">
        <div class="unit-submit-card" style="width: 220px">
          <img src="../assets/images/submit-success.png" alt="">
          <p style="font-size: 14px;font-weight: normal">2022-04-08  申报成功</p>
        </div>
      </div>

      <div class="padding-lr-20">
        <h3 class="title3">分户验收文件</h3>

        <ul class="padding-bottom-30">
          <li class="margin-bottom-10">
            <a href="#">
              <i class="blue dtFont dtFont-fujian1"></i>
              <span class="underline">住宅工程质量分户验收楼栋号汇总表</span>
            </a>
          </li>
          <li class="margin-bottom-10">
            <a href="#">
              <i class="blue dtFont dtFont-fujian1"></i>
              <span class="underline">住宅工程质量分户验收楼栋号汇总表</span>
            </a>
          </li>
          <li class="margin-bottom-10">
            <a href="#">
              <i class="blue dtFont dtFont-fujian1"></i>
              <span class="underline">住宅工程质量分户验收楼栋号汇总表</span>
            </a>
          </li>
        </ul>
      </div>

    </section>
  </div>

</div>


<!--region 引入公用js和css -->
<script src="../assets/plugins/sweetalert/sweetalert.min.js"></script>
<script src="../assets/plugins/jquery.blockui.min.js"></script>
<script src="../assets/plugins/js.cookie.min.js"></script>
<script src="../assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="../assets/plugins/jquery.blockui.min.js"></script>
<script src="../assets/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
<script src="../assets/plugins/bootstrap-touchspin/bootstrap.touchspin.js"></script>
<script src="../assets/plugins/moment.min.js"></script>
<script src="../assets/plugins/bootstrap-daterangepicker/daterangepicker.min.js"></script>
<script src="../assets/plugins/counterup/jquery.waypoints.min.js"></script>
<script src="../assets/plugins/counterup/jquery.counterup.min.js"></script>
<script src="../assets/plugins/fullcalendar/fullcalendar.js"></script>
<script src="../assets/plugins/horizontal-timeline/horizontal-timeline.js"></script>
<script src="../assets/plugins/jquery.sparkline.min.js"></script>
<script src="../assets/plugins/select2/js/select2.js"></script>
<script src="../assets/plugins/select2/js/i18n/zh-CN.js"></script>
<script src="../assets/plugins/ztree/jquery.ztree.all.js"></script>
<script src="../assets/plugins/jquery-form/jquery.form.js"></script>
<script src="../assets/plugins/jquery-validator/jquery.placeholder.min.js"></script>
<script src="../assets/plugins/jquery-validator/jquery.validate.js"></script>
<script src="../assets/plugins/jquery-validator/jquery.validate.custom.js"></script>
<script src="../assets/plugins/jquery-validator/localization/messages_zh.js"></script>
<script src="../assets/plugins/jquery-validator/additional-methods.js"></script>
<script src="../assets/plugins/bootstrap-growl/jquery.bootstrap-growl.js"></script>
<script src="../assets/plugins/bootstrap-table/bootstrap-table.js"></script>
<script src="../assets/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
<script src="../assets/plugins/bootstrap-table/extensions/tree-column/bootstrap-table-tree-column.js"></script>
<script src="../assets/base/scripts/app.js"></script>
<script src="../assets/base/scripts/theme.js"></script>
<script src="../assets/ditop/ditop-addition.js"></script>
<script src="../assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js" type="text/javascript"></script>
<script src="../assets/plugins/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"
        type="text/javascript"></script>
<script type="text/javascript" src="../assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"
        charset="UTF-8"></script>
<script type="text/javascript"
        src="../assets/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
        charset="UTF-8"></script>
<script src="../assets/plugins/jquery-validator/jquery.validate.custom.js"></script>
<script src="../assets/ditop/layout.js"></script>
<script src="../assets/module/gcjsy/js/content.js"></script>

<script>
  $('.tab-ha').children('li').on('click',function () {
    const index = $(this).index();
    $(this).addClass('active').siblings().removeClass('active');
    $('.tab-panes').children('section').eq(index).addClass('active').siblings().removeClass('active')
  });

  const treeData = [
  {
    "code": "XXXXX",
    "name": "地基与基础",
    "children":[
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      }, {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
    ]
  },{
    "code": "XXsXXX",
    "name": "地基与基础2",
    "children":[
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      }, {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
      {
        "code": "XXXXX",
        "name": "安徽德拓信（75）",
        "children":[
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          },
          {
            "code": "XXXXX",
            "name": "安徽德（75）",
          }
        ]
      },
    ]
  }];

  var $tree = $("#tree"), zTreeObj;
  function init() {
    zTreeObj = $.fn.zTree.init($tree, {
      data: {
        key: {
          name: "name",
          code: "code"
        },
      },
      edit: {
        drag: {
          prve: true,
          next: true
        },
        enable: true,
        showRemoveBtn: setRemoveBtn,
        showRenameBtn: setRenameBtn,
        removeTitle: "删除节点",
        enameTitle: "编辑节点名称",
      },
      view: {
        addHoverDom: addHoverDom,
        removeHoverDom: removeHoverDom,
        // showLine: false
      },
      callback: {
        // onCheck: onCheck,
        // onClick:onClick
      }
    }, treeData);
  }
  init();
  function addHoverDom(treeId, treeNode) {
    var aObj;
    var addStr = "<span class='button add' id=" + treeNode.tId + "_add title='添加子节点' onclick=''></span>";
    if (treeNode.tId === 'tree_1') {
      aObj = $("#" + treeNode.tId + "_span");
      if (aObj.next().hasClass('add')) return;
      aObj.after(addStr);
    } else {
      aObj = $("#" + treeNode.tId + "_edit");
      if (aObj.prev().hasClass('add')) return;
      aObj.before(addStr);
    }
    var btn = $("#" + treeNode.tId + "_add");
    if (btn) btn.bind("click", function () {
      var newNode = {name: ""};
      var newNodez = zTreeObj.addNodes(treeNode, newNode);
      zTreeObj.editName(newNodez[0]);
    });
  }
  function removeHoverDom(treeId, treeNode) {
    $("#" + treeNode.tId + "_add").unbind().remove();
  }
  function setRemoveBtn(treeId, treeNode) {
    return treeNode.tId !== 'tree_1';
  }
  function setRenameBtn(treeId, treeNode) {
    return treeNode.tId !== 'tree_1';
  }
  $('#addTree').click(function () {
    var bObj=$("#tree_1_span");
    console.log(bObj)
    var addStr = "<span class='button add' id=" + treeNode.tId + "_add title='添加子节点' onclick=''></span>";
    if (bObj.next().hasClass('add')) return;
    bObj.after(addStr);

  })
</script>
</body>
</html>
